<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> 
<html> 
<head> 
<base href="<%=basePath%>">
<script type="text/javascript" src="http://code.jquery.com/jquery-1.10.1.min.js"></script> 
<script type="text/javascript" src="http://code.jquery.com/jquery-migrate-1.2.1.min.js"></script> 
<script type="text/javascript" src="<%=basePath%>/js/timeago.js" ></script> 
<script type="text/javascript"> 
</script> 
</head> 
<body> 
This is my JSP page. <br> 
<form method="post" action="file!uplaodFile"
 enctype="multipart/form-data">
 <!-- key为文件名 -->
  <input name="key" type="hidden" >
  <input name="file" type="file" />
  <input name="submit" type="submit" value="提交">
</form>
	
</body> 
</html>